package com.company.hive.monitor;

/**
 * 告警级别枚举
 */
public enum AlertLevel {
    
    /** 紧急 */
    CRITICAL("critical", "紧急", "red"),
    
    /** 严重 */
    SEVERE("severe", "严重", "orange"),
    
    /** 警告 */
    WARNING("warning", "警告", "yellow"),
    
    /** 信息 */
    INFO("info", "信息", "blue");
    
    private final String code;
    private final String name;
    private final String color;
    
    AlertLevel(String code, String name, String color) {
        this.code = code;
        this.name = name;
        this.color = color;
    }
    
    public String getCode() {
        return code;
    }
    
    public String getName() {
        return name;
    }
    
    public String getColor() {
        return color;
    }
}

